{# 只是定义的宏详见: http://mozilla.github.io/nunjucks/cn/templating.html#call #}
{% macro field(title, leftHtml='<i class="back ift-goback"></i>', rightHtml=null, isCall=false, headerClass='fixed') %}
<header class="mk-header {{headerClass}}">
	{% if leftHtml %}
	<div class="left">
		{{leftHtml | safe}}
	</div>
	{% endif%}
	{% if title %}
	<h1 class="title">{{title}}</h1>
	{% endif %}
	{% if rightHtml or isCall %}
	<div class="right">
		{% if rightHtml %}
		{{rightHtml | safe}}
		{% endif%}
		{% if isCall %}
		{{ caller() }}
		{% endif%}
	</div>
	{% endif%}
</header>
{% endmacro %}